package com.simtop;

import com.simtop.util.fileutil.FileUtil;
import freemarker.template.Configuration;
import freemarker.template.Template;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.*;
import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName: test01
 * @Description TODO
 * @Author liuzhaobo
 * @Date 2022/11/4 0004 14:15
 * @Version 1.0
 **/
public class test03 {
    public static void main(String[] args) {


    }

    public void export(HttpServletRequest request, HttpServletResponse response) {
        Map<String, Object> params = new HashMap<>();
        params.put("title", "这是标题");
        params.put("name", "李四");
        //这里是我说的一行代码
        FileUtil.exportWord("C:\\Users\\Administrator\\Desktop\\形拓题库系统\\questionbank\\src\\main\\resources\\word\\002.docx", "D:/test002", "aaa.docx", params, request, response);
    }
}
